package com.qf.openapi.web.master.controller;

import com.qf.openapi.web.master.entity.User;
import com.qf.openapi.web.master.service.impl.UserServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/User")
public class loginController {
    UserServiceImpl userService;
    @RequestMapping("/login")
    public String login(User user){
        final boolean login = userService.login(user);
        if (login){
            return "/loginSuccessful.html";
        }else{
            return "/loginFiled.html";
        }


    }
}
